package com.itheima.digui;

import java.util.Arrays;

public class Demo {
    public static void main(String[] args) {
    int[] arr = {1,2,2,3,3,5,6};
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
        int i = Arrays.binarySearch(arr, 3);
        System.out.println(i);
    }
}
